function updateClock() {
    const now = new Date();
    const sec = now.getSeconds();
    const min = now.getMinutes();
    const hr = now.getHours();

    const secDeg = (sec / 60) * 360;
    const minDeg = (min / 60) * 360;
    const hrDeg = (hr / 12) * 360;

    console.log(secDeg +":"+ minDeg + ":" + hrDeg); 

    document.getElementById('sc').style.transform = `rotate(${secDeg}deg)`;
    document.getElementById('mn').style.transform = `rotate(${minDeg}deg)`;
    document.getElementById('hr').style.transform = `rotate(${hrDeg}deg)`;
}

setInterval(updateClock, 1000);
updateClock();
